package com.panda.mess.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.panda.mess.entity.Message;
import com.panda.mess.entity.MessageVo;
import com.panda.sys.entity.User;

public interface MessageMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);

	List<User> findAllFriend(@Param("uid")Long uid);

	List<MessageVo> findListLimit(@Param("offSet")Long offSet, @Param("pageSize")Long pageSize,@Param("uid")Long uid,@Param("name") String name);

	Long findListCount(@Param("uid")Long uid, @Param("name")String name);

	List<MessageVo> findAllMess(@Param("mid")Long mid);
}